import request from '@/utils/request'
// 获取企业列表
export const companyListAPI = () => {
  return request({
    method: 'get',
    url: '/companys'
  })
}
// 删除企业信息
export const delCompany = (id) => {
  return request({
    method: 'delete',
    url: `/companys/${id}`
  })
}
// 添加企业信息
export const addCompany = (listForm) => {
  return request({
    method: 'post',
    url: '/companys',
    data: listForm

  })
}
// 获取企业信息详情
export const getDetailAPI = (id) => {
  return request({
    method: 'get',
    url: `/companys/${id}`
  })
}
// 企业信息修改提交
export const editDetail = (detailForm) => {
  return request({
    method: 'put',
    url: `/companys/${detailForm.id}`,
    data: detailForm
  })
}
